package com.jiyun.feign;

import com.jiyun.entity.day05.ContestDTO;
import com.jiyun.vo.ResultResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Title: ContestFeign
 * @Author 杜瑞
 * @Date 2023/8/28 11:25
 */
@FeignClient("day12-contest")
public interface ContestFeign {
    @PostMapping("/contest/findAll1")
    public ResultResponse findAll1(@RequestBody ContestDTO contestDTO);
    @RequestMapping("/contest/findByJs")
    public ResultResponse findByJs(@RequestParam("id") Integer id);

    @PostMapping("/contest/findSj")
    public ResultResponse findSj(@RequestParam("id") Integer id);
}
